package work.xiaohong.business.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import work.xiaohong.business.fallback.OrderFallback;
import work.xiaohong.business.to.OrderTbl;
import work.xiaohong.model.Result;

/**
 * @author xiaohong
 * @version 1.0
 * @date 2021/9/17 0017 13:06
 */
@FeignClient(name = "xiaohong-order",contextId = "orderTbl",fallback = OrderFallback.class)
public interface OrderFeign {

    /***
     * 新增OrderTbl数据
     * @param orderTbl
     * @return
     */
    @PostMapping("/order")
    Result add(@RequestBody OrderTbl orderTbl);

}
